import request from '@/utils/request'

// 查询队长队伍列表
export function listLeaderTeam(query) {
  return request({
    url: '/match/LeaderTeam/list',
    method: 'get',
    params: query
  })
}

// 查询队长队伍详细
export function getLeaderTeam(userId) {
  return request({
    url: '/match/LeaderTeam/' + userId,
    method: 'get'
  })
}

// 新增队长队伍
export function addLeaderTeam(data) {
  return request({
    url: '/match/LeaderTeam',
    method: 'post',
    data: data
  })
}

// 修改队长队伍
export function updateLeaderTeam(data) {
  return request({
    url: '/match/LeaderTeam',
    method: 'put',
    data: data
  })
}

// 删除队长队伍
export function delLeaderTeam(userId) {
  return request({
    url: '/match/LeaderTeam/' + userId,
    method: 'delete'
  })
}
